package com.example.jinmingwu.a180531_service;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.widget.Toast;

/**
 * Created by jinmingwu on 2018/5/31.
 */

public class NotifyService extends Service{
    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }

    public void onCreate(){
        MainActivity app=MainActivity.getApp();
        app.btEvent("from NotifyService");
        Toast.makeText(this, "这是系统自带的service", Toast.LENGTH_SHORT).show();
    }
}
